<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Wall
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 * @version    $Id: Translate.php 2011-04-26 11:18:13 michael $
 * @author     Michael
 */

/**
 * @category   Application_Extensions
 * @package    Wall
 * @copyright  Copyright Hire-Experts LLC
 * @license    http://www.hire-experts.com
 */

class Wall_Model_Helper_Translate extends Activity_Model_Helper_Abstract {
	/**
	 *
	 * @param string $value
	 * @return string
	 */
	public function direct($value, $noTranslate = false) {
		$translate = Zend_Registry::get ( 'Zend_Translate' );
		if (! $noTranslate && $translate instanceof Zend_Translate) {
			$tmp = $translate->translate ( $value );
			return $tmp;
		} else {
			return $value;
		}
	}
}